package com.company;

public class Student extends Person implements Hello {

	public static int number = 0;

	private String name;
	@NotNull
	protected String address = null;
	private String address2 = "沈阳";

	@Range(max = 1)
	private int age = 20;

	public Student() { this("unnamed"); }
	public Student(String name, int age, String name1) {
		super(name, age);
		this.name = name1;
	}

	public Student(String unnamed) {
		super();
	}

	public void hello() {
		System.out.println("Hi, " + name + " from " + address + "!");
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

}
